package jHaggis;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JComponent;
import javax.swing.JScrollPane;

/**
 * @author Christopher Vogel
 *
 */
public class jTransScrollPane extends JScrollPane {
	/**
	 * Generiert eine transparente jScrollPane.
	 * @param JComponent c
	 * @author Christopher Vogel
	 *
	 */
	public jTransScrollPane(JComponent c) {
		super(c, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
				JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
		this.setOpaque(false);
		this.getViewport().setOpaque(false);
		this.setBorder(null);
		this.getVerticalScrollBar().setUnitIncrement(20);
	}

}
